<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>${initProjectVo.springBootVersion}</version>
        <relativePath/>
    </parent>

    <groupId>${initProjectVo.groupValue}</groupId>
    <artifactId>${initProjectVo.artifactValue}</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>${initProjectVo.nameValue}</name>

    <modules>
        <module>${initProjectVo.artifactValue}-core</module>
        <module>${initProjectVo.artifactValue}-common</module>
        <module>${initProjectVo.artifactValue}-api</module>
    </modules>

    <profiles>
        <profile>
            <id>dev</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <profile.active>dev</profile.active>
            </properties>
        </profile>
        <profile>
            <id>pro</id>
            <properties>
                <profile.active>pro</profile.active>
            </properties>
        </profile>
    </profiles>

    <properties>
        <java.version>${initProjectVo.javaVersion}</java.version>
        <project.version>0.0.1-SNAPSHOT</project.version>
        <druid.version>1.2.14</druid.version>
        <mybatis-plus.version>3.5.2</mybatis-plus.version>
        <slf4j.version>1.7.30</slf4j.version>
        <jwt.version>4.2.0</jwt.version>
        <apache-common-lang3.version>3.9</apache-common-lang3.version>
        <commons.codec.version>1.15</commons.codec.version>
        <easy.excle.version>2.1.6</easy.excle.version>
        <jredis.version>4.3.1</jredis.version>
        <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
        <jackson.version>2.13.4</jackson.version>
        <jsoup.version>1.13.1</jsoup.version>
        <common-io.version>2.11.0</common-io.version>
        <easy.captcha.version>1.6.2</easy.captcha.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- project dependency -->
            <dependency>
                <groupId>${initProjectVo.groupValue}</groupId>
                <artifactId>${initProjectVo.artifactValue}-api</artifactId>
                <version>${"$"}{project.version}</version>
            </dependency>
            <dependency>
                <groupId>${initProjectVo.groupValue}</groupId>
                <artifactId>${initProjectVo.artifactValue}-common</artifactId>
                <version>${"$"}{project.version}</version>
            </dependency>
            <dependency>
                <groupId>${initProjectVo.groupValue}</groupId>
                <artifactId>${initProjectVo.artifactValue}-core</artifactId>
                <version>${"$"}{project.version}</version>
            </dependency>
            <!-- maven lib  -->
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${"$"}{common-io.version}</version>
            </dependency>

            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid-spring-boot-starter</artifactId>
                <version>${"$"}{druid.version}</version>
            </dependency>
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>mybatis-plus-boot-starter</artifactId>
                <version>${"$"}{mybatis-plus.version}</version>
            </dependency>

            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>${"$"}{mysql.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${"$"}{slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${"$"}{javax.servlet-api.version}</version>
            </dependency>
            <dependency>
                <groupId>redis.clients</groupId>
                <artifactId>jedis</artifactId>
                <version>${"$"}{jredis.version}</version>
            </dependency>
            <dependency>
                <groupId>com.auth0</groupId>
                <artifactId>java-jwt</artifactId>
                <version>${"$"}{jwt.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${"$"}{apache-common-lang3.version}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>easyexcel</artifactId>
                <version>${"$"}{easy.excle.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${"$"}{jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${"$"}{jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
                <version>${"$"}{jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jsoup</groupId>
                <artifactId>jsoup</artifactId>
                <version>${"$"}{jsoup.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${"$"}{commons.codec.version}</version>
            </dependency>
            <dependency>
                <groupId>com.github.whvcse</groupId>
                <artifactId>easy-captcha</artifactId>
                <version>${"$"}{easy.captcha.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>${"$"}{java.version}</source>
                    <target>${"$"}{java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.22.2</version>
                <configuration>
                    <skipTests>true</skipTests>    <!--默认关掉单元测试 -->
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
